<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #range{
            appearance: none;
        }
        #range::-webkit-slider-runnable-track{
                background: linear-gradient(to right , #f0f , #ff0);

            }
    </style>
</head>
<body>
    <body style="display: flex;">
        
        
        <input type="range" name="" id="range">

        
    </body>
</body>

<script>
    function cb1(){};

    let p1 = new Promise((res, rej)=> {


        cb1()
    })
</script>
</html>